import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
// JSON.parse(window.sessionStorage.getItem('LOGIN_USER'))
export default new Vuex.Store({
  state: {
    user: null,
    menuCollapse: false
  },
  mutations: {
    login (state, user) {
      state.user = user
    },
    changeMenu (state, collapse) {
      state.menuCollapse = collapse
    }
  }
})
